import service from "@/utils/request.js";

export const getAllType = (data) => {
    return service({
        url: '/msb/public/getAllType',
        method: 'post',
        data
    })
}

// 平台响应规则
export const getPlatformResponseRule = () => {
    return service({
        url: '/msb//ruler/getPlatformRuler',
        method: 'post',
    })
}

// 平台活跃规则
export const getPlatformActiveRule = () => {
    return service({
        url: '/msb/ruler/getPlatformActiveRuler',
        method: 'post',
    })
}
// 下载app
export const downloadApp = () => {
    return service({
        url: '/msb/public/getPlatformQrCode',
        method: 'post',
    })
}
// 获取公众号二维码
export const getWxCode = () => {
    return service({
        url: '/system/wxApi/getWxBondResult',
        method: 'post',
    })
}
// 获取协议等
export const getProtocol = () => {
    return service({
        url: '/msb/public/getAgreementList',
        method: 'post',
    })
}
// 获取协议规则详情
export const getAgreementDetails = (data) => {
    return service({
        url: '/msb/public/getAgreementById',
        method: 'post',
        data
    })
}
